<template>
	<view class="manualDetails">
		<view class="md-title">{{ title }}</view>
		<view class="d-rich-text"><rich-text :nodes="content"></rich-text></view>
	</view>
</template>

<script>
// import { mapState, mapMutations } from "vuex";
export default {
	data() {
		return {
			title: '',
			id: '',
			content: ''
		};
	},
	onLoad(e) {
		console.log(e);
		this.title = e.title;
		this.id = e.id;

		this.postData();
	},
	created() {
		// console.log(this.letterList.length)
	},
	computed: {
		// ...mapState({auoutUS:state => state.setUp.auoutUS})
	},
	methods: {
		// 获取数据
		postData() {
			this.$api
				.post(global.apiUrls.manualDetails, { id: this.id })
				.then(res => {
					console.log(res);
					this.content = res.data.data.content;
				})
				.catch(err => {
					// this.$popup.showToast('保存失败')
				});
		}
	}
};
</script>

<style lang="scss" scoped>
@import './manualDetails.scss';
</style>
